﻿using System;
using System.ComponentModel.DataAnnotations;
using MongoDB.Bson;

namespace DataMongo.Entities
{
    public class Project
    {
         public ObjectId _id { get; set; }
        [Key]
        public int ProjectId { get; set; }

        public string ProjectTitle { get; set; }

        public int CountryId { get; set; }

        public DateTime ProjectStartDate { get; set; }

        public int NumberOf { get; set; }
        public string NumberOfType { get; set; }
        public string WokingHrs { get; set; }

        public string ProjectDescription { get; set; }

        public string Skills { get; set; }

        public int ViewCount { get; set; }

        public DateTime ProjectExpireOn { get; set; }

        public int ProjectOwenerId { get; set; }

        public bool IsActive { get; set; }

    }

    
    public class ProjectCategoryMapping
    {
        public ObjectId _id { get; set; }

        public int MapId { get; set; }
        [Key]
        public int ProjectId { get; set; }

        public int CategoryId { get; set; }

    }

    public class ProjectLocationMapping
    {
        public ObjectId _id { get; set; }

        public int LocId { get; set; }
        [Key]
        public int ProjectId { get; set; }

        public int LocationId { get; set; }

    }

    public class ProjectBookMark
    {
        public ObjectId _id { get; set; }

        public int MarkId { get; set; }
        [Key]
        public int ProjectId { get; set; }

        public int MarkedByUserId { get; set; }

    }

    public class ProjectReplied
    {
        public ObjectId _id { get; set; }

        public int RepId { get; set; }
        [Key]
        public int ProjectId { get; set; }

        public int MessageByUserId { get; set; }

        public string ProjectMessage { get; set; }

    }


}